package com.cyzy.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 对象存储配置
 */
@Configuration
public class OSSConfig {
    
    /**
     * 对象存储服务地址
     */
    @Value("${oss.endpoint:http://123.60.66.194:44127}")
    private String endpoint;
    
    /**
     * 访问密钥ID
     */
    @Value("${oss.access-key:root123456}")
    private String accessKey;
    
    /**
     * 访问密钥密码
     */
    @Value("${oss.secret-key:root123456}")
    private String secretKey;
    
    /**
     * 存储桶名称
     */
    @Value("${oss.bucket-name:edulivelink}")
    private String bucketName;
    
    public String getEndpoint() {
        return endpoint;
    }
    
    public String getAccessKey() {
        return accessKey;
    }
    
    public String getSecretKey() {
        return secretKey;
    }
    
    public String getBucketName() {
        return bucketName;
    }
}
